package com.fsts.entity;

import java.io.Serializable;
import java.math.BigInteger;

/**
 * 私钥
 * 
 * 
 * @author
 * @version 1.0
 * @since JDK1.6(建议)
 */
public class PublicKey implements Serializable {
	private static final long serialVersionUID = -4320695177511562762L;
	private BigInteger e;
	private BigInteger g;
	private int id;
	private BigInteger n;

	public PublicKey() {
		super();
	}

	public PublicKey(BigInteger n, BigInteger e, BigInteger g) {
		super();
		this.n = n;
		this.e = e;
		this.g = g;
	}

	public BigInteger getE() {
		return e;
	}

	public BigInteger getG() {
		return g;
	}

	public int getId() {
		return id;
	}

	public BigInteger getN() {
		return n;
	}

	public void setE(BigInteger e) {
		this.e = e;
	}

	public void setG(BigInteger g) {
		this.g = g;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setN(BigInteger n) {
		this.n = n;
	}

	@Override
	public String toString() {
		return this.n + "," + this.e + "," + this.g;
	}
}
